﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyVideoViewerLibrary;
using Microsoft.MediaCenter.UI;

namespace MyVideoViewerMCPlugin
{
    public class TVActor : ModelItem
    {
        public Series_Person SeriesPerson { get; set; }
        public string ActorName
        {
            get{ return SeriesPerson.Person.PersonName;}
        }
        public string ActorDescription
        {
            get
            { 
                if(string.IsNullOrEmpty(SeriesPerson.Role))
                    return ActorName;
                return string.Format("{0} as {1}", SeriesPerson.Person.PersonName, SeriesPerson.Role);
            }
        }

        public TVActor(){}
        public TVActor(Series_Person seriesPerson) 
        {
            SeriesPerson = seriesPerson;
        }
    }
}
